package com.lhd.shop.controller;

import com.lhd.shop.service.FrontService;
import dto.DishesDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vo.ResponseData;

import java.util.List;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-11-19 09:01
 **/
@RestController
@RequestMapping("/dishes")
public class DishesController {
    @Autowired
    private FrontService frontService;

    @GetMapping("/querydishes")
    public ResponseData<List<DishesDTO>> queryDishes(Integer mid, Integer menuid) {
        return frontService.queryDishes(mid, menuid);
    }
}
